package Duotai;

class yasuo{
    public void jineng(){
        System.out.println("哈撒给");
    }
    public void xiaoming(){
        System.out.println("托儿所");
    }
        }


class jie extends yasuo{
    public void jineng(){
        System.out.println("奥义影杀阵");
    }
    public void xiaoming(){
        System.out.println("儿童劫");
    }
        }


public class Test_1 {
    public static void main(String[] args) {
        yasuo a = new yasuo();
        a.jineng();
        a.xiaoming();

        yasuo b = new jie();  //向上转型
        b.xiaoming();

        jie c = new jie();
        c.jineng();


    }
}
